From: Keir Fraser Date: Fri, 7 Nov 2008 17:06:21 +0000 (+0000) Subject: x86, vmx realmode: Stack manipulation on interrupt/exception injection X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14043^2~48 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=ed675eda42fc5b2f522daa17ea446c7274e500ad;p=xen.git x86, vmx realmode: Stack manipulation on interrupt/exception injection should respect SS size, not CS size. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/vmx/realmode.c b/xen/arch/x86/hvm/vmx/realmode.c index 5d13f4e60b..9bd1f25162 100644 --- a/xen/arch/x86/hvm/vmx/realmode.c +++ b/xen/arch/x86/hvm/vmx/realmode.c @@ -69,7 +69,7 @@ static void realmode_deliver_exception( frame[1] = csr->sel; frame[2] = regs->eflags & ~X86_EFLAGS_RF; - if ( hvmemul_ctxt->ctxt.addr_size == 32 ) + if ( hvmemul_ctxt->ctxt.sp_size == 32 ) { regs->esp -= 6; pstk = regs->esp;